@extends('layouts.app')

@section('content')
    <div class="row">
        <div class="col-xs-12 col-md-10 col-lg-8">
            <!-- BEGIN PAGE HEADER -->
            <div class="clearfix">
                <h3 class="page-title pull-left">
                    <a class="a-unstyled" href="/admin/admins">
                        <i class="icon-arrow-left-circle"></i>
                    </a>
                    管理员
                </h3>
            </div>
            <!-- END PAGE HEADER -->
        </div>

        <div class="col-xs-12 col-md-10 col-lg-8">
            <!-- BEGIN PAGE CONTENT-->
            <dl>
                <dt>@lang('t.name')</dt>
                <dd>{{ $admin->name }}</dd>

                <dt>@lang('t.email')</dt>
                <dd>{{ $admin->email }}</dd>

                <dt>@lang('t.permissions')</dt>
                <dd>
                    @foreach($admin->permissions as $permission)
                        <span>{{ $permission->description }}</span>
                    @endforeach
                </dd>
            </dl>
            <!-- END PAGE CONTENT-->
        </div>
    </div>
@endsection

